﻿<Application
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Interface.App"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF" />

        <SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />

        <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />
        <SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />
        <Style x:Key="{x:Type ListBox}" TargetType="ListBox">
            <Setter Property="SnapsToDevicePixels" Value="true"/>
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
            <Setter Property="MinWidth" Value="120"/>
            <Setter Property="MinHeight" Value="95"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBox">
                        <Border 
                          Name="Border" 
                          Background="{StaticResource WindowBackgroundBrush}"
                          BorderBrush="{StaticResource SolidBorderBrush}"
                          BorderThickness="1"
                          CornerRadius="2">
                            <ScrollViewer 
                                Margin="0"
                                Focusable="false">
                                <StackPanel Margin="2" IsItemsHost="True" />
                            </ScrollViewer>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter TargetName="Border" Property="Background"
                    Value="{StaticResource DisabledBackgroundBrush}" />
                                <Setter TargetName="Border" Property="BorderBrush"
                    Value="{StaticResource DisabledBorderBrush}" />
                            </Trigger>
                            <Trigger Property="IsGrouping" Value="true">
                                <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style TargetType="{x:Type Button}">
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Button}">
    					<Grid x:Name="grid" Margin="0,0,32,6">
    						<Rectangle x:Name="Back" Stroke="{TemplateBinding Background}" Opacity="1" RadiusX="25" RadiusY="25" Fill="{TemplateBinding Background}"/>
    						<Rectangle x:Name="Front" Stroke="{TemplateBinding Background}" Opacity="0.2" RadiusX="25" RadiusY="25">
    							<Rectangle.Fill>
    								<LinearGradientBrush EndPoint="1.035,0.968" StartPoint="-0.003,-0.046">
    									<GradientStop Color="White" Offset="0.061"/>
    									<GradientStop Offset="1"/>
    								</LinearGradientBrush>
    							</Rectangle.Fill>
    						</Rectangle>
    						<Ellipse x:Name="ellipse" HorizontalAlignment="Left" Margin="1,1,0,1" Width="43" Fill="White" StrokeThickness="5">
    							<Ellipse.Stroke>
    								<LinearGradientBrush EndPoint="0.5,1" StartPoint="-0.785,-0.294">
    									<GradientStop Color="White" Offset="0"/>
    									<GradientStop Offset="1"/>
    								</LinearGradientBrush>
    							</Ellipse.Stroke>
    						</Ellipse>
    						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Stretch" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Top" Margin="62.188,8,25,0" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="-0.278,0.468" Height="12.96"/>
    					</Grid>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsFocused" Value="True"/>
    						<Trigger Property="IsDefaulted" Value="True"/>
    						<Trigger Property="IsMouseOver" Value="True">
    							<Setter Property="Stroke" TargetName="ellipse">
    								<Setter.Value>
    									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    										<GradientStop Color="Transparent" Offset="0"/>
    										<GradientStop Offset="1" Color="Transparent"/>
    									</LinearGradientBrush>
    								</Setter.Value>
    							</Setter>
    							<Setter Property="Fill" TargetName="Front">
    								<Setter.Value>
    									<LinearGradientBrush EndPoint="1.186,1.117" StartPoint="-0.003,-0.046">
    										<GradientStop Color="White" Offset="0"/>
    										<GradientStop Offset="1" Color="Transparent"/>
    										<GradientStop Color="Transparent" Offset="0.296"/>
    										<GradientStop Color="White" Offset="0.661"/>
    									</LinearGradientBrush>
    								</Setter.Value>
    							</Setter>
    						</Trigger>
    						<Trigger Property="IsPressed" Value="True">
    							<Setter Property="VerticalAlignment" TargetName="Front" Value="Stretch"/>
    							<Setter Property="Height" TargetName="Front" Value="Auto"/>
    							<Setter Property="Fill" TargetName="Front">
    								<Setter.Value>
    									<LinearGradientBrush EndPoint="1.035,0.968" StartPoint="-0.003,-0.046">
    										<GradientStop Color="White" Offset="0"/>
    										<GradientStop Offset="1" Color="White"/>
    										<GradientStop Color="Transparent" Offset="0.248"/>
    										<GradientStop Color="Transparent" Offset="0.678"/>
    										<GradientStop Color="White" Offset="0.504"/>
    									</LinearGradientBrush>
    								</Setter.Value>
    							</Setter>
    							<Setter Property="StrokeThickness" TargetName="Front" Value="1"/>
    							<Setter Property="Opacity" TargetName="Front" Value="0.5"/>
    							<Setter Property="Width" TargetName="grid" Value="Auto"/>
    							<Setter Property="Height" TargetName="grid" Value="Auto"/>
    							<Setter Property="Margin" TargetName="grid" Value="-3.499,3,11.5,-3"/>
    							<Setter Property="Margin" TargetName="Back" Value="0,-3,25,8"/>
    							<Setter Property="Margin" TargetName="Front" Value="0,-3,25,8"/>
    							<Setter Property="Width" TargetName="ellipse" Value="43"/>
    							<Setter Property="VerticalAlignment" TargetName="ellipse" Value="Stretch"/>
    							<Setter Property="Height" TargetName="ellipse" Value="Auto"/>
    							<Setter Property="Margin" TargetName="ellipse" Value="1,-2,0,10"/>
    							<Setter Property="Margin" TargetName="contentPresenter" Value="62.188,6,25,0"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="False"/>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
         
    </Application.Resources>
</Application>
